package cn.edu.hunau.basic.day02;

import org.junit.Test;

/**
 * @author hb
 * @date 2025-07-29 11:14:46
 */
public class FixTest {

    @Test
    public void prefixAdd(){
        int a = 1;
        int b=++a; //2

        int c=1;
        int d=c++;//1
        System.out.println("a="+a);//2
        System.out.println("b="+b);//2
        System.out.println("c="+c);//2
        System.out.println("d="+d);//1

    }
}
